<template>
  <van-search placeholder="请输入您想要的内容" v-model="value" @focus="search()" />
  <!-- <form action>
    <van-search v-model="value" placeholder="请输入搜索关键词" show-action shape="round" @search="onSearch">
      <div slot="action" @click="onSearch">搜索</div>
    </van-search>
  </form> -->
</template>
<script>
export default {
    data(){
      return{
        value:'',
        sousuo:''
      }
    },
    methods:{
      search(){  //获取焦点  跳转至搜索页
      this.$router.push({ name: "sousuo" });
      },
    //   async search2(value) {
    //   let {
    //     data
    //   } = await this.$axios.get("http://localhost:5555/listbo/sousuo", {
    //     params: { value }
    //   });
    //   this.sousuo = data;
    //   this.$router.push({ name: "sousuo",query: {value} });
    //   // window.console.log(data);
    // }
      
    }
}
</script>
